<template>
	<page-meta><navigation-bar title="扫码支付" front-color="#000000" background-color="#ffffff" /></page-meta>
	<view>
		<iframe :src="url" frameborder="0" style="width: 100%;" :style="{height:height + 'px'}"></iframe>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				url:'',
				height:''
			}
		},
		methods: {
			getdata(){
				
			}
		},
		onShow(){
			var _this = this;
			uni.getNetworkType({
				success: function(res) {
					if (res.networkType == 'none') {
						uni.showToast({
							title: '当前无网络连接，请检查！',
							icon: 'none',
							duration: 5000
			
							// position:'top'
						});
					}
				}
			});
			uni.onNetworkStatusChange(function(res) {
				if (!res.isConnected) {
					uni.showToast({
						title: '当前无网络连接，请检查！',
						icon: 'none',
						duration: 3000
						// position:'top'
					});
				} else {
					uni.showToast({
						title: '网络已连接！',
						icon: 'none',
						duration: 3000
						// position:'top'
					});
					_this.getdata();
				}
			});
			_this.getdata();
			this.height = uni.getSystemInfoSync().windowHeight;
		},
		onLoad(e) {
			this.url = e.url;
		}
			
	}
</script>

<style>

</style>
